//
//  AToneViewController.m
//  TAUi
//
//  Created by Lin Buken on 16/1/11.
//  Copyright © 2016年 com.aiton. All rights reserved.
//

#import "ATInfoViewController.h"
#import "AppDelegate.h"
#import "ATTabBarViewController.h"

@interface ATInfoViewController ()

@end

@implementation ATInfoViewController

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    
    AppDelegate *appDele = [UIApplication sharedApplication].delegate;
    //显示tabBar
    ATTabBarViewController *tabBarCtrl= (ATTabBarViewController *)appDele.window.rootViewController;
    [tabBarCtrl hiddenTabbar];
}

-(void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    
    [super viewWillAppear:animated];
    
    AppDelegate *appDele = [UIApplication sharedApplication].delegate;
    //显示tabBar
    ATTabBarViewController *tabBarCtrl= (ATTabBarViewController *)appDele.window.rootViewController;
    [tabBarCtrl hiddenTabbar];
    
}

-(void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [super viewWillAppear:animated];
    
    AppDelegate *appDele = [UIApplication sharedApplication].delegate;
    //显示tabBar
    ATTabBarViewController *tabBarCtrl= (ATTabBarViewController *)appDele.window.rootViewController;
    [tabBarCtrl showTabbar];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
}

//-(void)viewWillAppear:(BOOL)animated
//{
//    self.parentViewController.tabBarController.tabBar.hidden = YES;
//}

//-(void)viewWillDisappear:(BOOL)animated
//{
//    self.parentViewController.tabBarController.tabBar.hidden = NO;
//
//}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
